/* 基础设置 */
body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    background-color: #f7f9fc;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
}

.container {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 900px;
    box-sizing: border-box;
}

/* 标题 */
h1 {
    margin-bottom: 20px;
    font-size: 28px;
    color: #2c3e50;
    text-align: center;
}

/* 左上角按钮 */
#advanced-settings-btn, #help-btn, #donate-btn {
    background-color: #6c757d;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    margin-right: 8px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

#advanced-settings-btn:hover, #help-btn:hover, #donate-btn:hover {
    background-color: #5a6268;
}

/* 表单布局 */
form {
    margin-bottom: 20px;
}

textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 16px;
    box-sizing: border-box;
    resize: vertical;
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    align-items: center;
    flex: 1;
    margin-right: 10px;
}

#filename, #speaker-dropdown {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #d1d9e6;
    font-size: 16px;
    box-sizing: border-box;
}

button.clear-filename-btn, #edit-speaker-btn {
    background-color: #bbbbbb;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 10px;
}

button.clear-filename-btn:hover, #edit-speaker-btn:hover {
    background-color: #7f8c8d;
}

/* 按钮组 */
.form-row:last-child {
    justify-content: flex-start; /* 将按钮左对齐 */
}

button {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    background-color: #007bff;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-right: 10px;
}

button:hover {
    background-color: #0056b3;
}
input[type="submit"] {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    background-color: #007BFF;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
	margin-right: 10px;
}

input[type="submit"]:hover {
    background-color: #0056b3;
}

#stop-btn {
    background-color: #e74c3c;
}

#stop-btn:hover {
    background-color: #c0392b;
}

#refresh-btn {
    background-color: #28a745;
}

#refresh-btn:hover {
    background-color: #218838;
}

/* 状态栏 */
#status, #unfinished-sentence {
    margin-top: 20px;
    padding: 12px;
    border-radius: 6px;
    background-color: #f9f9f9;
    border: 1px solid #d1d9e6;
    font-size: 14px;
    color: #555;
}

#unfinished-sentence {
    color: #e74c3c;
    font-weight: bold;
}

/* 进度条 */
#progress-container {
    margin-top: 20px;
    width: 100%;
    background-color: #f3f3f3;
    border-radius: 6px;
}

#progress-bar {
    width: 0;
    height: 20px;
    background-color: #4caf50;
    text-align: center;
    line-height: 20px;
    color: white;
}

/* 浮窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #d1d9e6;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.help-content, .donate-content {
    max-height: 85vh;
    overflow-y: auto;
}

#help-btn, #donate-btn {
    background-color: #751e3f;
}

#help-btn:hover, #donate-btn:hover {
    background-color: #5a6268;
}
#clear-btn {
    display: block;
    width: 100%; /* 占据整个容器的宽度 */
    padding: 12px 0;
    margin-top: 20px;
    border: none;
    border-radius: 6px;
    background-color: #FF4136;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#clear-btn:hover {
    background-color: #c0392b;
}
/* 浮窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6); /* 加深背景色，提高对比度 */
}

.modal-content {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #d1d9e6;
    border-radius: 8px;
    width: 88%; /* 调整宽度，使其更适应内容 */
    max-width: 880px; /* 限制最大宽度 */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    text-align: left; /* 调整为左对齐 */
    font-size: 16px; /* 增加字体大小，提升可读性 */
}
.modal-content img{ display:block; width:90%; max-width:600px; margin:20px auto;}
#maoc_qr_menu{display:none;}
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* 编辑讲述人标题 */
.modal-content h2 {
    margin-top: 0;
    font-size: 24px;
    color: #333;
    text-align: center; /* 保持标题居中 */
}

/* 讲述人列表项 */
.speaker-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #ddd; /* 增加分隔线 */
    margin-bottom: 8px;
}

.speaker-item:last-child {
    border-bottom: none; /* 去掉最后一项的分隔线 */
}

/* 删除讲述人按钮（恢复为圆形） */
.delete-speaker-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 0px;
    cursor: pointer;
    font-size: 24px;
    margin-left: 0px;
    padding: 6px;
}

.delete-speaker-btn.disabled {
    background-color: grey;
    cursor: not-allowed;
}

/* 添加讲述人输入框和按钮 */
#new-speaker-name {
    width: calc(70% - 20px); /* 调整宽度以适应旁边的按钮 */
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #d1d9e6;
    margin-right: 10px;
    font-size: 16px;
    box-sizing: border-box;
    display: inline-block;
    vertical-align: middle; /* 保持与按钮的垂直对齐 */
}

#add-speaker-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block;
    vertical-align: middle; /* 保持与输入框的垂直对齐 */
}

#add-speaker-btn:hover {
    background-color: #218838;
}
#clear-filename-btn｛ margin-left:-56px;｝

/* 针对 help-text 内部的表格样式 */
#help-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    text-align: left;
    color: #333;
    background-color: #f9f9f9;
}

#help-text th, #help-text td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    word-break: break-all; /* 保证长单词和URL不会溢出表格 */
}

#help-text th {
    background-color: #f2f2f2;
    color: #333;
    font-weight: bold;
}

#help-text td a {
    color: #007bff;
    text-decoration: none;
    word-break: break-all;
}

#help-text td a:hover {
    text-decoration: underline;
}

#help-text tr:nth-child(even) {
    background-color: #f2f2f2;
}

#help-text tr:hover {
    background-color: #e9e9e9;
}

#help-text .firstRow {
    background-color: #4CAF50; /* 表格标题行的背景颜色 */
    color: white;
    text-align: center;
}
#merge-status{ display:none;}
